/*
* Copyright (c) 2011 Connection Road.  All rights reserved.
* This program and the accompanying material are made available
* under the terms of the Eclipse Public Licnese v1.0 which is
* available at http://www.eclipse.org/legal/epl-v10.html
*/

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CrSyncFilesForms.Properties;
using CrSyncFilesForms.Utils;

namespace CrSyncFilesForms
{
    public partial class CrSyncUiWelcomeScreen1 : Form
    {
        public CrSyncUiWelcomeScreen1()
        {
            InitializeComponent();
            Load += CallBackLoad;
        }

        protected virtual void CallBackLoad(object  sender, EventArgs args)
        {
            CheckBoxDoNotShowAgain.Checked = Settings.Default.CFG_DO_NOT_SHOW_WELCOME_SCREEN_1;

            var height = Height;
            var width = Width;

            MaximumSize = new Size(width,width);
            MinimumSize = new Size(width,height);
        }

        
        
        private void ButtonCloseClick(object sender, EventArgs e)
        {
            Settings.Default.CFG_DO_NOT_SHOW_WELCOME_SCREEN_1 = CheckBoxDoNotShowAgain.Checked;
            Settings.Default.Save();
            Close();
        }
    }
}
